import {Request} from "@/api/request";
import Qs from 'qs'

export function getAllByArticle(id) {
    return Request.axiosInstance({
        url: '/api/issue/findByArticle',
        method: 'post',
        data: Qs.stringify({id})
    })
}

export function addIssue(name, content, article) {
    return Request.axiosInstance({
        url: '/api/issue/add',
        method: 'post',
        data: Qs.stringify({content, article, name})
    })
}
